package com.baizhi.mapper;

import com.baizhi.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    void addAddress(Address address);
    void removeAddress(Integer id);
    void updateAddress(Address address);
    Address selectAddress(Integer id);
    List<Address> selectAllAddress(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize);
    List<Address> selectAddressByUserId(Integer id);
}
